Unary
The following is a list of all the unary operators and their usages:
Unary Operators
Symbol
Example
Explanation
-
-a
unary minus
~
~a
* one's complement
!
!a
* logical negation
!
a!
* factorial
(*) Starred explanations indicate that the operator requires an integer argument.
The factorial operator returns a real number to allow a greater range.